package cn.psvmc.cxzapi.model.store;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 账户表
 * @Author auto
 * @Date 2024-08-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_account")
public class TAccount implements Serializable {

    //账户id
    @TableId(value = "account_id", type = IdType.AUTO)
    private Integer accountId;

    //账户类型（1租金账户2质保金账户）
    @TableField("account_type")
    private Integer accountType;

    //余额
    @TableField("balance")
    private Double balance;

    //商家id
    @TableField("storeid")
    private Integer storeid;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //操作人id
    @TableField(value = "updateid", fill = FieldFill.INSERT_UPDATE)
    private Integer updateid;

    //操作时间
    @TableField(value = "updatetime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;

    //版本号
    @TableField("rversion")
    @Version
    private Integer rversion;


}
